<?php
/* @var $this CustomerBusinessController */
/* @var $model CustomerBusiness */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'customer-business-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'cust_industry'); ?>
		<?php echo $form->textField($model,'cust_industry',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'cust_industry'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cust_name'); ?>
		<?php echo $form->textField($model,'cust_name',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'cust_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cust_head'); ?>
		<?php echo $form->textField($model,'cust_head',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'cust_head'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cust_addnum'); ?>
		<?php echo $form->textField($model,'cust_addnum',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'cust_addnum'); ?>
	</div>

	<div class="row">
	
        <?php echo $form->labelEx($model,'cust_city'); ?> 
	<?php echo $form->dropDownList($model,'cust_city',array("Manila"=>"Manila", "Bacolod"=>"Bacolod", "Bacoor"=>"Bacoor", "Baguio"=>"Baguio", 	"Batangas"=>"Batangas", "Calamba"=>"Calamba","Caloocan"=>"Caloocan", "Cebu"=>"Cebu", "Dasmarinas"=>"Dasmarinas", "Davao"=>"Davao", "General 	Santos"=>"General Santos", "Las Pinas"=>"Las Pinas","Makati"=>"Makati","Malabon"=>"Malabon", 	"Mandaluyong"=>"Mandaluyong","Marikina"=>"Marikina", "Muntinlupa"=>"Muntinlupa", "Navotas"=>"Navotas", "Ortigas"=>"Ortigas", 	"Paranaque"=>"Paranaque", "Pasay"=>"Pasay","Pasig"=>"Pasig","Quezon"=>"Quezon","San Juan"=>"San Juan", "Santa Rosa"=>"Santa Rosa", 	"Taquig"=>"Taguig", "Valenzuela"=>"Valenzuela") 

    	,array('empty'=>'Select a City')); ?>

        <?php echo $form->error($model,'cust_city'); ?> 
	</div>

	<div class="row">
        <?php echo $form->labelEx($model,'cust_country'); ?> <?php echo $form->dropDownList($model,'cust_country',array("Philippines"=>"Philippines") 

   	 ,array('empty'=>'Select a Country')); ?>

        <?php echo $form->error($model,'cust_country'); ?> 

	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cust_faxnum'); ?>
		<?php echo $form->textField($model,'cust_faxnum'); ?>
		<?php echo $form->error($model,'cust_faxnum'); ?>
	</div>	

	<div class="row">
		<?php echo $form->labelEx($model,'contact_lname'); ?>
		<?php echo $form->textField($model,'contact_lname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contact_lname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contact_fname'); ?>
		<?php echo $form->textField($model,'contact_fname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contact_fname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contact_telnum'); ?>
		<?php echo $form->textField($model,'contact_telnum'); ?>
		<?php echo $form->error($model,'contact_telnum'); ?>
	</div>


	<div class="row">
		<?php echo $form->labelEx($model,'contact_email'); ?>
		<?php echo $form->textField($model,'contact_email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contact_email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cust_contact'); ?>
		<?php echo $form->textField($model,'cust_contact',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'cust_contact'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cust_telnum'); ?>
		<?php echo $form->textField($model,'cust_telnum'); ?>
		<?php echo $form->error($model,'cust_telnum'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
